<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="head.jsp" %>
<% 
	Object uriO = request.getAttribute("requestContrlURI");
	String uri = uriO==null?"":(String)uriO;
	String[] tabClassArr = {"tabNormal","tabNormal","tabNormal","tabNormal","tabNormal","tabNormal"};
	if(uri.equals(path+"/admin/myhouse.do")){
		if("PublishNews".equals(request.getParameter("action"))){
			tabClassArr[2] = "";
		}else if("PublishFY".equals(request.getParameter("action"))){
			tabClassArr[1] = "";
		}else{
			tabClassArr[0] = "";
		}
	}else if(uri.startsWith(path+"/sale")){
		tabClassArr[3] = "";
	}else if(uri.startsWith(path+"/rent")){
		tabClassArr[4] = "";
	}else if(uri.startsWith(path+"/news")){
		tabClassArr[5] = "";
	}
%>	
	<div class="container lightBg">
	 	<c:choose>
	 	<c:when test="${empty jspUserO}">
	 		<p class="hRight ptl fcCCC prl">
				<a href="<%=path%>/login.do" class="fcbl fwb">登录</a>
				&nbsp;&nbsp;|&nbsp;&nbsp; <a href="<%=path%>/user/register.do"
					class="fcbl">注册</a>
			</p>
		</c:when>
		<c:otherwise>
			<p class="hRight ptl fcCCC prl">
        		<span class="fcbl">欢迎您,${jspUserO.userName},</span>
        		<a href="<%=path%>/logout.do" class="fcbl fco" title="退出登录">退出登录！</a>
    		</p>
		</c:otherwise>
		</c:choose> 
		
		<div id="logo"></div>
		<div class="ptm">
			<div class="tabTop"></div>
			<ul class="tab">
				<li class="left">
					<a href="<%=path %>/admin/myhouse.do" class="<%=tabClassArr[0] %>"> 
						<span class="tabLeft"></span> 
						<span class="tabCenter">个人中心</span>
						<span class="tabRight"></span>
					</a>
				</li>
				<li class="left">
					<a href="<%=path %>/admin/myhouse.do?action=PublishFY" class="<%=tabClassArr[1] %>">
						<span class="tabLeft"></span>
						<span class="tabCenter">免费发布房源</span>
						<span class="tabRight"></span>
					</a>
				</li>
				<li class="left">
					<a href="<%=path %>/admin/myhouse.do?action=PublishNews" class="<%=tabClassArr[2] %>">
						<span class="tabLeft"></span>
						<span class="tabCenter">发布新闻</span>
						<span class="tabRight"></span>
					</a>
				</li>
				<li class="left">
					<a href="houselist.html" class="<%=tabClassArr[3] %>">
						<span class="tabLeft"></span> 
						<span class="tabCenter">住房出租</span>
						<span class="tabRight"></span>
					</a>
				</li>
				<li class="left">
					<a href="houselist.html" class="<%=tabClassArr[4] %>">
						<span class="tabLeft"></span>
						<span class="tabCenter">住房出售</span>
						<span class="tabRight"></span>
					</a>
				</li>
				<li class="left">
					<a href="<%=path %>/news/newslist.do" class="<%=tabClassArr[5] %>">
						<span class="tabLeft"></span>
						<span class="tabCenter">房产新闻</span>
						<span class="tabRight"></span>
					</a>
				</li>
				<li class="clear"></li>
			</ul>
			<div class="clear"></div>